﻿<%@ Page Language="C#" MasterPageFile="~/Template/ADMIN_QUANLY.Master" AutoEventWireup="true" CodeBehind="thongkedoanhsosanpham.aspx.cs" Inherits="BTN04.ADMIN.thongkedoanhsotheothang" Title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

</asp:Content>
<asp:Content ID="Content2" runat="server" contentplaceholderid="ContentPlaceHolder1">
    <div style="text-align:center;" align="center" >
            Tháng&nbsp;<asp:DropDownList ID="ddThang" runat="server">
            </asp:DropDownList>
            &nbsp;Năm&nbsp; 
            <asp:DropDownList ID="ddNam" runat="server">
            </asp:DropDownList>
            &nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnThongKe" runat="server" Text="Thống kê" 
            onclick="btnThongKe_Click" />
            </br>
            <div style ="color :Blue ;">DOANH SỐ SẢN PHẨM ĐÃ BÁN ĐƯỢC</div>
            <asp:GridView ID="gvThongKe" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" DataKeyNames="STT" 
                onrowdatabound="gvThongKe_RowDataBound" 
                onselectedindexchanged="gvThongKe_SelectedIndexChanged" 
                onpageindexchanging="gvThongKe_PageIndexChanging" 
                BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" 
                CellPadding="4" PageSize="5" HorizontalAlign="Center">
                <PagerSettings FirstPageText="Trang đầu" LastPageText="Trang cuối" 
                    NextPageText="&gt;&gt;" PreviousPageText="&lt;&lt;" 
                    Mode="NumericFirstLast" />
                <RowStyle BackColor="White" ForeColor="#003399" />
                <Columns>
                    <asp:BoundField HeaderText="STT" />
                    <asp:BoundField HeaderText="Tên sản phẩm" />
                    <asp:BoundField HeaderText="Loại sản phẩm" />
                    <asp:BoundField HeaderText="Nhà sản xuất" />
                    <asp:BoundField HeaderText="Số lượng mua" />
                    <asp:BoundField HeaderText="Giá bán" />
                    <asp:BoundField HeaderText="Thành tiền" />
                </Columns>
                <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
            </asp:GridView>

            <asp:Label ID="lbTongSanPham" runat="server" Text=""></asp:Label>
            </br>
            <asp:Label ID="lbTongDanhThu" runat="server" Text=""></asp:Label>
   </div>
                        
</asp:Content>

